﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UploadConfig.aspx.cs" Inherits="Whir_System_Module_Config_UploadConfig" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>上传设置</title>
    <link href="../../Skin/Default/Css/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        if (top.location == self.location) { 
            top.location='../../Default.aspx';
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#DADADA">
            <tr>
                <td height="26" colspan="2" align="left" class="form_title">
                    <strong>上传设置</strong></td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    上传文件夹名称
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtFolder" runat="server"></asp:TextBox>
                    <whir:ezValidatorMessage ID="EzValidatorMessage1" runat="server" ControlToValidate="txtFolder"
                        ErrorMessage="请输入文件夹名称!" ValidateGroup="Group1" ValidatoringType="Require" CssLink=""></whir:ezValidatorMessage></td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    是否上传编辑器中图片
                </td>
                <td align="left" class="form_td">
                    <asp:CheckBox ID="cbIsUploadEditor" runat="server" Text="是" />
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    是否重命名文件
                </td>
                <td align="left" class="form_td">
                    <asp:CheckBox ID="cbIsUpdateName" runat="server" Text="是" />
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    上传文件保存方式
                </td>
                <td align="left" class="form_td">
                    <asp:DropDownList ID="ddlSaveWay" runat="server">
                        <asp:ListItem Value="1">按时间存入</asp:ListItem>
                        <asp:ListItem Value="2">按年月日存入</asp:ListItem>
                        <asp:ListItem Value="3">按随机数存入</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    允许的图片类型
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtAllowPicType" runat="server" Width="300"></asp:TextBox>
                    <span class="form_desc">图片类型之间用‘|’隔开</span>
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    上传图片最大值
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtMaxPicSize" runat="server" Width="80"></asp:TextBox>
                    KB
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    允许的媒体类型
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtAllowMediaType" runat="server" Width="300"></asp:TextBox>
                    <span class="form_desc">媒体类型之间用‘|’隔开</span>
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    上传媒体最大值
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtMaxMediaSize" runat="server" Width="80"></asp:TextBox>
                    KB
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    允许的文件类型
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtAllowFileType" runat="server" Width="300"></asp:TextBox>
                    <span class="form_desc">文件类型之间用‘|’隔开</span>
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                    上传文件最大值
                </td>
                <td align="left" class="form_td">
                    <asp:TextBox ID="txtMaxFileSize" runat="server" Width="80"></asp:TextBox>
                    KB
                </td>
            </tr>
            <tr>
                <td width="150px" height="30" align="center" class="form_tdText">
                </td>
                <td align="left" class="form_td">
                    <asp:Button ID="btnUpdate" runat="server" Text="修改" CssClass="btn_default" OnClientClick="return confirm('确定要修改吗？');"
                        OnClick="btnUpdate_Click" />
                    <input id="Reset1" type="reset" value="重置" class="btn_default" />
                    <whir:ezValidatorButton ID="EzValidatorButton1" runat="server" ControlToBind="btnUpdate" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
